<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户注册 </title>
<style type="text/css">
.div1{margin-top: 20px;height: 50x;}
</style>
<script type="text/javascript">
 function checkUser(){
	 var user=document.getElementById("userName").value;
	 if(user.length<=0){
		alert("请输入用户名");
		return false;
	 }
	 return true;
 }
</script>
</head>
<body>
<form id="from1" method="post" action="UserInfo.jsp" onsubmit="return checkUser()">
<div style="text-align: center;margin-top: 100px;">
	<div class="div1" >请输入注册信息</div>
	<div class="div1">
		姓名：<input type="text" name="userName" id="userName" style="height: 25px;width: 200px;">
		<span style="color: red;">*</span>
	</div>
	<div class="div1">
		密码：<input type="password" name="pwd" id="pwd" style="height: 25px;width: 200px;">
		<span style="color: red;">*</span>
	</div>
	<div class="div1">
		信息来源：<input type="checkbox" name="checkb" id="checkb" value="报刊">报刊
		<input type="checkbox" name="checkb" id="checkb" value="网络">网络
		<input type="checkbox" name="checkb" id="checkb" value="朋友推荐">朋友推荐
		<input type="checkbox" name="checkb" id="checkb" value="电视">电视
	</div>	
	<div class="div1">
		<input type="submit" name="btnOk" id="btnOK">
	</div>	
</div>
</form>
</body>
</html>